<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const name ="why"
        const age=18
        const height=23
        //es5写法 属性的增强写法
      const obj={
        name:name,
        age:age,
        height:height
      }
      console.log(obj)
      //es6写法
      const obj6={
        name,
        age,
        height
      }
      console.log(obj6)
      //2.函数的增强写法
      const obj66={
        run(){

        }
      }
    </script>
</body>
</html>